home *** CD-ROM | disk | FTP | other *** search
- ############################################################################
- # #
- # MAKEFILE for the TIMEDEMO #
- # #
- ############################################################################
-
- # Compiler is 'M' for Microsoft, 'T' for Borland Turbo C
- COMPILER = T
- # Model is
- # 1) Microsoft C - 'M' for Medium, 'L' for Large
- # 2) Turbo C - 'm' for medium, 'l' for large
- MODEL = l
-
- # Change this path to the path where your BC++ is installed
- MEWELPATH=c:\mewel
- ROOT=i:\bc
-
- # Borland Turbo C macros
- CC = bcc
- #CC = tcc
- # Optimization : -G favors speed over size, -O improves jumps & loops
- OPT = -G -O
- DEBUG= -v
- CFLAGS = $(DEBUG) -c -d -f- -k -N -K -m$(MODEL) -DDOS -I$(ROOT)\include
- ASM = tasm
- ASMFLAGS = /dTC=1 /dLMODEL=0 /mx
- LIB = tlib
- LINK = tlink
- LFLAGS = /v
-
- # Inference rules for C and ASM files
-
- .c.obj :
- $(CC) $(CFLAGS) $*.c
-
- .asm.obj :
- $(ASM) $(ASMFLAGS) $*;
-
- .rc.res :
- $(MEWELPATH)\rc $*
-
-
- DEMO = mewldemo
- OBJS = $(DEMO).obj
-
- all : $(DEMO).exe
-
-
- $(DEMO).obj : $(DEMO).c
-
- $(DEMO).res : $(DEMO).rc
-
- $(DEMO).exe : $(OBJS) $(DEMO).res
- $(LINK) $(LFLAGS) $(ROOT)\lib\c0$(MODEL)+$(OBJS),$(DEMO),nul,$(ROOT)\lib\c$(MODEL)+\mewel\libtd
- $(MEWELPATH)\rc $(DEMO).res
-
-